 </div>
		   <!-- END CONTENT -->
     <?php
	 	if(!is_home())
		{
	 ?>
     <div class="jk-content-bot" style="height:25px"></div>  
     <?php 
		}
	?>
    
	<!--  BEGIN BOT SOCIAL -->		
    <div id="bot-social">
    
    	<ul>

			
            <li><a href="<?php bloginfo('rss2_url'); ?>" title="RSS" class="rss"><img src="<?php bloginfo('template_directory'); ?>/images/ico_rss.png" alt="Subcribe to Our RSS Feed" /></a></li>

			<?php if(get_option('boldy_facebook_link')!=""){ ?>

            <li><a href="<?php echo get_option('boldy_facebook_link'); ?>" class="twitter" title="Join Us on Facebook!"><img src="<?php bloginfo('template_directory'); ?>/images/ico_facebook.png" alt="Join Us on Facebook!" /></a></li>

            <?php }?>
            
			<?php if(get_option('boldy_linkedin_link')!=""){ ?>

            <li><a href="<?php echo get_option('boldy_linkedin_link'); ?>" class="linkedin" title="Join us on LinkedIn!"><img src="<?php bloginfo('template_directory'); ?>/images/ico_linkedin.png" alt="LinkedIn" /></a></li>

            <?php }?>

            <?php if(get_option('boldy_twitter_user')!=""){ ?>

            <li><a href="http://www.twitter.com/<?php echo get_option('boldy_twitter_user'); ?>" class="twitter" title="Follow Us on Twitter!"><img src="<?php bloginfo('template_directory'); ?>/images/ico_twitter.png" alt="Follow Us on Twitter!" /></a></li>

            <?php }?>

           </ul>
    </div>
    
    	<!-- END BOT SOCIAL LINKS -->
	</div>
	<!-- END WRAPPER -->
	
	<!-- BEGIN FOOTER -->
	<div id="footer">
		<div id="footerWidgets">
			<div id="footerWidgetsInner">
				<!-- FOOTER MENU -->
                <div id="jk-footer">
                	<table class="jk-footer-tb" align="center">
                        <tr>
                        	<?php
								global $wpdb;
								$res = $wpdb->get_results("SELECT id, name 
														  	FROM lbm_footer_menu 
															WHERE deleted = 0 AND parent_menu = 0 AND post_status = 'published'
															ORDER BY priority ASC
															LIMIT 0,5");
								foreach($res as $row)
								{
									echo '<td width="20%" valign="top">
                            				<span class="jk-footer-title">'.$row->name.'</span>
                                				<ul>';
									$res2 = $wpdb->get_results("SELECT name,link_menu FROM lbm_footer_menu 
															   	WHERE deleted = 0 AND parent_menu = '".$row->id."' AND post_status = 'published'
																ORDER BY priority ASC");
									foreach($res2 as $row2)
									{
										echo '<li><a href="'.get_option('siteurl').'/'.$row2->link_menu.'" title="'.$row2->name.'">'.$row2->name.'</a></li>';
									}
									echo '	</ul>
                            			  </td>';
								}
                            ?>
                            
                            
                    	</tr>
                    </table>
                </div>
				<!-- END FOOTER MENU -->
                <!-- BEGIN COPYRIGHT -->
                <div id="copyright">
					<?php if (get_option('boldy_copyright') <> ""){
						echo stripslashes(stripslashes(get_option('boldy_copyright')));
						}
					?> 
						
				</div>
				<!-- END COPYRIGHT -->						
				</div>
				
		</div>
	</div>	
	<!-- END FOOTER -->
</div>
<!-- END MAINWRAPPER -->
<?php if (get_option(' boldy_analytics') <> "") { 
		echo stripslashes(stripslashes(get_option('boldy_analytics'))); 
	} ?>
<?php wp_footer(); ?>
</body>
</html>